package com.yaorange.job.task;

import com.yaorange.common.core.constant.SecurityConstants;
import com.yaorange.common.core.utils.StringUtils;
import com.yaorange.system.api.RemoteTeachingService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import static com.yaorange.common.core.constant.SecurityConstants.INNER;

/**
 * 定时任务调度测试
 *
 * @author ruoyi
 */
@Slf4j
@Component("dailyTask")
public class DailyTask
{

    @Autowired
    private RemoteTeachingService remoteTeachingService;

    public void createDailyTask()
    {
        log.info("正在创建每日任务");
        remoteTeachingService.createDailyTask(INNER);
        log.info("创建每日任务结束");
    }


    public void checkDailyTask()
    {
        log.info("正在检查每日任务");
        remoteTeachingService.checkDailyTask(INNER);
        log.info("检查每日任务结束");
    }


}
